/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace ATkg.BizAppProject.DomainModels
{
    [Entity(TableCnName = "成本数据管理",TableName = "materialfactorycost",DBServer = "ServiceDbContext")]
    public partial class materialfactorycost:ServiceEntity
    {
        /// <summary>
       ///厂级/工段级
       /// </summary>
       [Display(Name ="厂级/工段级")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Level { get; set; }

       /// <summary>
       ///模块类型
       /// </summary>
       [Display(Name ="模块类型")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string DataType { get; set; }

       /// <summary>
       ///月度/日度
       /// </summary>
       [Display(Name ="月度/日度")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string DateLevel { get; set; }

       /// <summary>
       ///几月/几月几日
       /// </summary>
       [Display(Name ="几月/几月几日")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? Data { get; set; }

       /// <summary>
       ///总成本
       /// </summary>
       [Display(Name ="总成本")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public float? TotalCost { get; set; }

       /// <summary>
       ///产量
       /// </summary>
       [Display(Name ="产量")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public float? ToalProduc { get; set; }

       /// <summary>
       ///单公斤成本
       /// </summary>
       [Display(Name ="单公斤成本")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public float? PerCost { get; set; }

       /// <summary>
       ///电耗
       /// </summary>
       [Display(Name ="电耗")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public float? Energe { get; set; }

       /// <summary>
       ///单公斤电耗
       /// </summary>
       [Display(Name ="单公斤电耗")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public float? PerEng { get; set; }

       /// <summary>
       ///氮气
       /// </summary>
       [Display(Name ="氮气")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public float? NGas { get; set; }

       /// <summary>
       ///氩气
       /// </summary>
       [Display(Name ="氩气")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public float? YGas { get; set; }

       /// <summary>
       ///单位消耗量
       /// </summary>
       [Display(Name ="单位消耗量")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public float? PerGas { get; set; }

       /// <summary>
       ///人员工时
       /// </summary>
       [Display(Name ="人员工时")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public float? Perstime { get; set; }

       /// <summary>
       ///人均效率
       /// </summary>
       [Display(Name ="人均效率")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public float? PerPeo { get; set; }

       /// <summary>
       ///键
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="键")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long Id { get; set; }

       /// <summary>
       ///是否有效(0:否,1:是)
       /// </summary>
       [Display(Name ="是否有效(0:否,1:是)")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int IsValid { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Remarks { get; set; }

       /// <summary>
       ///创建人ID
       /// </summary>
       [Display(Name ="创建人ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long CreateId { get; set; }

       /// <summary>
       ///创建人名
       /// </summary>
       [Display(Name ="创建人名")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改人ID
       /// </summary>
       [Display(Name ="修改人ID")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人名
       /// </summary>
       [Display(Name ="修改人名")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       
    }
}